<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/vue.js"></script>
    <style>
        
    </style>
</head>
<body>
    <div id="box">
        <child>
            <h1 slot="s1">父组件中的标签1</h1>
            <h1 slot="s2">父组件中的标签2</h1>
        </child>
    </div>
    <script>
        Vue.component("child",{
            template:`
                <div>
                    <slot name="s1"></slot>
                    插槽slot的使用
                    <slot name="s2"></slot>
                </div>
            `
        })
       
        const vm = new Vue({
            el:"#box",
            data:{
                list:["qq","ww","ee"]
            },
            methods:{
            },
        })
    </script>
</body>
</html>